
import javax.swing.JLabel;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Riso
 */
public class skore extends JLabel implements Runnable{
    Thread t = new Thread(this);
    JPanel j;
    public skore(int x, int y, JPanel j){
        this.setBounds(x+10, y-10, 51, 51);
        this.j = j;
        t.start();
        this.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/50.gif")));
    }

    @Override
    public void run() {
        try {
            t.sleep(700);
            j.remove(this);
            j.repaint();
        } catch (Exception e) {
            e.printStackTrace();
        }
        
    }
    
}
